﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">用户数据</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">会员模型列表</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
			                                     
            	                                 <li class="current"><a href="#">会员模型列表</a></li>
	                                                			
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="?app=usertype&act=addpost" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
<span class="bold">增加会员模型:</span>&nbsp;&nbsp;&nbsp;会员模型名
 <input type="text" title="数据" value="" name="data[name]">&nbsp;&nbsp;&nbsp;默认权限(默认用户组)
	<select name="data[role_id]">
	
<?php foreach((array)$roledata as $_key => $_value ) { ?>
                                           
		<option value="{$_key}" <?php if ($_key==3) { ?>selected <?php } ?>  >{$_value.name}</option>
                
<?php } ?>
	
	</select>

 <input type="submit" value="提交" class="buton">

</div>

<div class="r">

</div>

</div>
</form>	
            <div class="clear"></div>	
    <table  class="data" >
        <thead>
		
	<th>ID</th>
	<th>会员模型名称</th>
	<th>默认权限(默认用户组)</th>	  
	<th>操作</th>		
		
        </thead>
	    <tbody>
		
<?php foreach((array)$infos as $_key => $_value ) { ?>

<tr  >
	<td  align="center">
	{$_value.id}

	</td>
  
       
	<td  > {$_value.name}</td>
    
 	<td  > {$roledata[$_value.role_id][name]}</td>  
	<td>
    

	                                            <a href="?app=usertype&act=edit&id={$_value.id}" target="mainframe">修改</a>/
	                                            <a href="?app=usertype&act=del&id={$_value.id}" onClick="return confirm('确认删除此项？此操作无法恢复！');">删除</a>/
								                <a href="?app=usertype&act=filedlist&id={$_value.id}" target="mainframe">字段管理</a>/											
								                <a href="?app=usertype&act=viewlist&id={$_value.id}" target="mainframe">模板管理</a>/
								                <a href="?app=usercon&act=index&tid={$_value.id}" target="mainframe">内容管理</a>                                              
	                                       
	</td>
</tr>

<?php } ?>


</tbody>
</table>
	
		
	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->